package com.green.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.green.system.common.DataGridView;
import com.green.system.domain.Menu;
import com.green.system.vo.MenuVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/10/17/21:26
 * @Description: 
 */


public interface MenuService extends IService<Menu>{

    /**
     * 根据用户ID查询菜单
     * @param id
     * @return
     */
    List<Menu> queryMenusForListByUserId(Integer id);


    /**
     * 全菜单查询
     * @return
     */
    List<Menu> queryAllMenuForList();

    DataGridView queryAllMenu(MenuVo menuVo);

    Integer queryMenuMaxOrderNum();

    Menu saveMenu(Menu menu);

    Menu updateMenu(Menu menu);

    Integer queryMenuChildrenCountById(Integer id);

    List<String> queryPermissionCodesByUserId(Integer id);
}
